// 订单管理
<template>
 <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
    <div>
       
        <div class="top6">
            <van-nav-bar  left-text="返回" left-arrow :fixed='true' @click-left="onClickLeft" :border='false'>
            <van-icon name="more" slot="right" color="black" @click="wen()" size="0.5rem" />
            <van-icon name="search" slot="right" color="black" size="0.5rem"/>
            <van-icon name="arrow-left" slot="left" color="black" size="0.5rem" />
            </van-nav-bar>
            <h3>订单管理</h3>
        </div>
        <div class="box6">
          <van-row gutter="20">
            <van-col span="8" @click="tap"><router-link to="/All">全部</router-link></van-col>
            <van-col span="8" @click="tap"><router-link to="/Unpaid">待支付</router-link></van-col>
            <van-col span="8" @click="tap"><router-link to="/Waiting">待接单</router-link></van-col>
            <van-col span="8" @click="tap"><router-link to="/Underway">进行中</router-link></van-col>
            <van-col span="8" @click="tap"><router-link to="/Consignee">待收货</router-link></van-col>
          </van-row>
        </div>
        <div>
            <router-view></router-view>
        </div>
        
    </div>
</van-pull-refresh>
</template>
<script>
    export default{
        data(){
            return{
               isLoading: false
            }
        },
        methods:{
            onClickLeft(){
                console.log(1)
				this.$router.push('/zyzlfb')
            },
             onRefresh() {
            setTimeout(() => {
                this.$toast('刷新成功');
                this.isLoading = false;
                this.count++;
            }, 500);
            },
            tap(){
                console.log(111)
                this.$router.go(-1)
            },
            wen(){
                this.$router.push('/Xxlb')
            }
        }
    }

</script>


<style>
    *{margin: 0 ;padding:0;}
    .top6{border-bottom:3px solid rgba(99, 96, 96, 0.034);margin-top: 1.2rem;}
    .top6 h3{margin-left:-75%;font-size: 16px;padding-top: .2rem}
    .box6{display: flex;flex-direction: column;border-bottom:1px solid #ccc;padding: 3% 0%}
    .van-icon-more{margin-right:1.4rem}
    .van-row{display: flex;font-size: 14px}
    
</style>